//
//  NumberCell.swift
//  iPhone
//
//  Created by Toj on 2/2/23.
//

import UIKit

class STTableViewCell: UITableViewCell {
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        contentView.addSubview(button)
        let width = 150.ui_mscale
        let maxX = UInt32(width)
        let x = CGFloat(arc4random_uniform(maxX))
        button.snp.makeConstraints { make in
            make.width.equalTo(width)
            make.left.equalTo(x)
            make.top.bottom.equalTo(contentView)
        }
    }
    
    /** <#NOTE#> **/
    private(set) lazy var button: UIButton = {
        let view = UIButton()
        view.backgroundColor = .random
        return view
    }()
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
